export default {
  getMenu: config => {
    console.log(config.body);
    return {
      code: 20000,
      data: {
        menu: [
          {
            path: "/home",
            name: "home",
            label: "首页",
            icon: "s-home",
            show: true
          },
          {
            label: "权限管理",
            icon: "s-tools",
            name: "permission",
            path: "/permission",
            show: true,
            children: [
              {
                path: "/user",
                name: "user",
                label: "用户",
                icon: "user",
                show: true
              },
              {
                path: "/role",
                name: "role",
                label: "角色",
                icon: "platform-eleme",
                show: true
              },
              {
                path: "/menu",
                name: "menu",
                label: "菜单",
                icon: "s-flag",
                show: true
              }
            ]
          }
        ],
        message: "获取成功"
      }
    };
  }
};
